package com.mc.moring.util

import com.google.gson.Gson
import com.google.gson.GsonBuilder
import com.google.gson.ToNumberPolicy

/**
 *
 * @ProjectName:    Monicash
 * @Package:        com.moring.moring.util
 * @ClassName:      GsonUtils
 * @Author:         ANWEN
 * @CreateDate:     2024/1/8 22:36
 * @UpdateUser:
 * @UpdateDate:     2024/1/8 22:36
 * @UpdateRemark:
 * @Version:
 */
object GsonUtils {

    fun getGson(): Gson {
        return GsonBuilder()
            .setObjectToNumberStrategy(ToNumberPolicy.LAZILY_PARSED_NUMBER)
            .create()
    }
}